package org.meow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * &#064;Date: 24/05/17-13:21
 * &#064;Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Comment {

  @TableId(type = IdType.AUTO)
  private Long          id;
  private Integer       articleId;
  private String        publishBy;
  private LocalDateTime publishDateTime;
  private LocalDateTime updateDateTime;
  private String        content;
  private String        ipAddress;
  @TableLogic
  private Integer       deleted;

}
